package com.atguigu.guli.service.edu.controller.api;


import com.atguigu.guli.service.edu.entity.Teacher;
import com.atguigu.guli.service.edu.service.TeacherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 讲师 前端控制器
 * </p>
 * @author atguigu
 * @since 2021-07-27
 */
@RestController
@RequestMapping("/api/edu/teacher")
@Api(tags = "用户讲师管理模块")
public class ApiTeacherController {

    @Autowired
    private TeacherService teacherService;

    @GetMapping("list")
    @ApiOperation("查询所有讲师列表")
    public List<Teacher> listAll(){
        return teacherService.list();
    }
}

